third-party-exp-api
Western Union - Send Money Store
Description: This API returns a list of cascades based on query parameters.
The experience API (third-party-api) will push the requests to third-party-prc api which sends the request to wu-sys-api and responds back to the channel.
Channel can send the following data in the query parameter: language (Required), cascadeBankCode (Required), bankName (Mandatory), city (Optional)
Mulesoft Request:
Headers:
Mandatory Headers: x-correlation-id, client_id, Authorization, x-channel-id, x-bank-id
Optional Headers: x-sub-channel-id, x-user-id, x-debug-flag, x-customer-id, client_secret
Paramaters:
URI Params: NA
Query Params: NA
Content-type: application/json
Mulesoft Request:
Request Body:
{
"sender": {
"name": {
"type": "D",
"firstName": "HEBREW",
"lastName": "YARDEN"
},
"address": {
"addrLine1": "1ST STREET",
"addrLine2": "2nd Line",
"city": "IRBID",
"postalCode": "11931",
"country": {
"countryCode": "JO",
"countryName": "JORDAN"
}
},
"complianceDetails": {
"templateId": "545",
"idDocuments": [
{
"type": "A",
"data": "9842056907",
"issueDate": "27082017",
"issueCountry": {
"isoCode": {
"countryCode": "JO"
},
"countryName": "JORDAN"
},
"expirationDate": "27082027",
"idExpires": "true"
}
],
"thirdPartyDetails": {
"flagPay": "N"
},
"dateOfBirth": "27011984",
"occupation": "Developer",
"transactionReason": "Travel expenses",
"countryOfBirth": "JORDAN",
"nationality": "JORDAN",
"ackFlag": "1"
},
"email": "NIDAA.O@GMAIL.COM",
"contactPhone": "962799287006",
"mobilePhone": {
"phoneNumber": {
"countryCode": "962",
"nationalNumber": "799287006"
}
},
"bankAccount": {
"name": "Capital Bank",
"accountNumber": "15599987",
"accountType": "savings"
}
},
"receiver": {
"name": {
"firstName": "Ghana",
"lastName": "Test"
},
"address": {
"addrLine1": "12 street",
"addrLine2": null,
"city": "Accra",
"postalCode": "560037",
"country": {
"countryCode": "GH",
"countryName": "GHANA"
}
},
"mobilePhone": {
"phoneNumber": {
"countryCode": "233",
"nationalNumber": "148987406"
}
},
"reasonForSending": "P010",
"walletDetails": {
"walletAccountNumber": "233148987406",
"serviceProviderCode": "23302",
"serviceProviderType": "40",
"serviceProviderName": "VODAFONE CASH"
}
},
"westernUnionProduct": {
"name": "MONEY IN MINUTES",
"code": "000",
"type": "WMN",
"routingCode": "62000000"
},
"transactionType": "WMN",
"paymentDetails": {
"origination": {
"principalAmount": "500",
"grossAmount": "3400",
"currencyIsoCode": "JOD",
"countryIsoCode": "JO"
},
"destination": {
"expectedPayoutAmount": "20728",
"currencyIsoCode": "GHS",
"countryIsoCode": "GH"
},
"promotion": {
"discount": "0",
"status": "0"
},
"taxes": {
"municipalTax": "0",
"stateTax": "0",
"countyTax": "0"
},
"fees": {
"baseCharges": "700",
"deliveryCharges": "0",
"otherCharges": "0"
},
"exchangeRate": "7.6771791",
"paymentType": "BankAccount",
"transactionAction": "HOLD",
"holdReleaseFields": {
"holdReleaseBuffer": "0101C0202BW0303JOR"
}
},
"tempTransactionId": "2204685279483239",
"transactionDigest": "45C94CCF22CC637665039447E97B30F47578A2EF"
}
Mulesoft Response:
Success Response: (200)
{
"status": {
"success": true,
"code": "200",
"arabicMessage": "تمت العملية بنجاح",
"englishMessage": "The Operation has been Successfully Completed"
},
"response": {
"sendMoneyStore": {
"sender": {
"name": {
"type": "D",
"firstName": "HEBREW",
"lastName": "YARDEN"
},
"address": {
"addrLine1": "1ST STREET",
"addrLine2": "2nd Line",
"city": "IRBID",
"postalCode": "11931",
"country": {
"countryCode": "JO",
"countryName": "JORDAN"
}
},
"complianceDetails": {
"templateId": "545",
"idDocuments": [
{
"type": "A",
"data": "9842056907",
"issueDate": "27082017",
"issueCountry": {
"isoCode": {
"countryCode": "JO"
},
"countryName": "JORDAN"
},
"expirationDate": "27082027",
"idExpires": "true"
}
],
"thirdPartyDetails": {
"flagPay": "N"
},
"dateOfBirth": "27011984",
"occupation": "Developer",
"transactionReason": "Travel expenses",
"countryOfBirth": "JORDAN",
"nationality": "JORDAN",
"ackFlag": "1"
},
"email": "NIDAA.O@GMAIL.COM",
"contactPhone": "962799287006",
"mobilePhone": {
"phoneNumber": {
"countryCode": "962",
"nationalNumber": "799287006"
}
},
"bankAccount": {
"name": "Capital Bank",
"accountNumber": "15599987",
"accountType": "savings"
}
},
"receiver": {
"name": {
"firstName": "Ghana",
"lastName": "Test"
},
"address": {
"addrLine1": "12 street",
"addrLine2": null,
"city": "Accra",
"postalCode": "560037",
"country": {
"countryCode": "GH",
"countryName": "GHANA"
}
},
"mobilePhone": {
"phoneNumber": {
"countryCode": "233",
"nationalNumber": "148987406"
}
},
"reasonForSending": "P010",
"walletDetails": {
"walletAccountNumber": "233148987406",
"serviceProviderCode": "23302",
"serviceProviderType": "40",
"serviceProviderName": "VODAFONE CASH"
}
},
"westernUnionProduct": {
"name": "MONEY IN MINUTES",
"code": "000",
"type": "WMN",
"routingCode": "62000000"
},
"transactionType": "WMN",
"paymentDetails": {
"origination": {
"principalAmount": "500",
"grossAmount": "3400",
"currencyIsoCode": "JOD",
"countryIsoCode": "JO"
},
"destination": {
"expectedPayoutAmount": "20728",
"currencyIsoCode": "GHS",
"countryIsoCode": "GH"
},
"promotion": {
"discount": "0",
"status": "0"
},
"taxes": {
"municipalTax": "0",
"stateTax": "0",
"countyTax": "0"
},
"fees": {
"baseCharges": "700",
"deliveryCharges": "0",
"otherCharges": "0"
},
"exchangeRate": "7.6771791",
"paymentType": "BankAccount",
"transactionAction": "HOLD",
"holdReleaseFields": {
"holdReleaseBuffer": "0101C0202BW0303JOR"
}
},
"newPointsEarned": "7",
"transactionId": "2204685279483239",
"moneyTransferControl": {
"date": "07-30 0510P EDT ",
"number": "8009340477"
},
"dateTime": "2022-07-30 T 17:11:01",
"transactionAvailability": {
"dateOfAvailability": "07312022",
"timeZone": "EST"
}
}
}
}
Sample Error Response:
500 :
{
"success”: false,
"code”: 500,
"reasonCode”: "Internal Server Error",
"arabicMessage”: "",
"englishMessage":"NO MATCHING RECORDS FOUND",
"backendError": "NO MATCHING RECORDS FOUND", (if debug flag is on)
"backendCode": "D0004" (if debug flag is on)
}